import java.util.Scanner;
public class Example8_8 {
    public static void main(String args[]) {
        String sourceString = "今晚十点进攻";
        EncryptAndDecrypt person = new EncryptAndDecrypt();
        String password = String.valueOf((int)(1+Math.random()*100));
        String secret = person.encrypt(sourceString,password);
        System.out.println("密文:"+secret);
        String source = person.decrypt(secret,password);
        System.out.println("明文:"+source);
    }
}
